package com.itlong.cloud.dao;

import com.itlong.cloud.POJO.PO.TimeTaskParkingErrorOrderPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <desc>
 *      停车场业务指令执行结果数据访问接口
 * </desc>
 *
 * @createDate 2018/11/15
 */
@Repository
@Mapper
public interface ITimeTaskParkingErrorOrderDao {
    /**
     * <desc>
     *      添加执行结果
     * </desc>
     *
     * @param params
     * @return
     * @author Jiaqi.X
     * @createDate 2018/11/15
     */
    Integer save(Map<String,Object> params);

    /**
     * <desc>
     *      获取执行失败的指令
     * </desc>
     *
     * @return
     * @author Jiaqi.X
     * @createDate 2018/11/15
     */
    List<TimeTaskParkingErrorOrderPO> getUntreatedErrors();

    /**
     * <desc>
     *      将处理状态改为已处理
     * </desc>
     *
     * @param errorIds
     * @return
     * @author Jiaqi.X
     * @create 2018/11/15
     */
    Integer setDataStatusSuccess(@Param("errorIds") String[] errorIds);

}
